package com.xqb.modules.domain.po;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xqb.common.annotation.Excel;
import com.xqb.common.core.domain.BaseEntity;

/**
 * 促销活动对象 mkt_promotion
 * 
 * @author xqb
 * @date 2024-10-15
 */
public class MktPromotion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 促销活动id */
    private Long id;

    /** 活动名称 */
    @Excel(name = "活动名称")
    private String name;

    /** 机构id */
    @Excel(name = "机构id")
    private Long insId;

    /** 促销活动类型：1-优惠券，2-分销 */
    @Excel(name = "促销活动类型：1-优惠券，2-分销")
    private Long type;

    /** 是否是热门活动：true或false，默认false */
    @Excel(name = "是否是热门活动：true或false，默认false")
    private Long hot;

    /** 活动开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "活动开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date beginTime;

    /** 活动结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "活动结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setInsId(Long insId) 
    {
        this.insId = insId;
    }

    public Long getInsId() 
    {
        return insId;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setHot(Long hot) 
    {
        this.hot = hot;
    }

    public Long getHot() 
    {
        return hot;
    }
    public void setBeginTime(Date beginTime) 
    {
        this.beginTime = beginTime;
    }

    public Date getBeginTime() 
    {
        return beginTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("insId", getInsId())
            .append("type", getType())
            .append("hot", getHot())
            .append("beginTime", getBeginTime())
            .append("endTime", getEndTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
